package com.woniu.carrent.pojo.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.woniu.carrent.pojo.TCar;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

@Data
public class TCarVo  {

    /**
     *
     */
    @TableId(value = "carId",type = IdType.ASSIGN_ID)
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer carid;
    /**
     *
     */
    @NotBlank(message="[]不能为空")
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    @TableField(exist = false)
    private String carname;
    @TableField(exist = false)
    private String ctypename;
    /**
     *
     */
    @TableField(exist = false)
    private String brandname;
    /**
     *
     */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String plate;
    /**
     *
     */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String pictures;
    /**
     *
     */
    @ApiModelProperty("")
    private BigDecimal price;
    /**
     *
     */
    @ApiModelProperty("")
    private Integer isonline;
    /**
     *
     */
    @ApiModelProperty("")
    private Integer isdeleted;
    /**
     *
     */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String files;
    @TableField(exist = false)
    private String lname;
    @TableField(value = "status",fill = FieldFill.INSERT)
    private  Integer status;
}
